package cn.ctodb.openapi.idcard.service;

import cn.ctodb.openapi.idcard.service.dto.DataIdcardDTO;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import java.util.List;

/**
 * Service Interface for managing DataIdcard.
 */
public interface DataIdcardService {

    /**
     * Save a dataIdcard.
     *
     * @param dataIdcardDTO the entity to save
     * @return the persisted entity
     */
    DataIdcardDTO save(DataIdcardDTO dataIdcardDTO);

    /**
     *  Get all the dataIdcards.
     *
     *  @param pageable the pagination information
     *  @return the list of entities
     */
    Page<DataIdcardDTO> findAll(Pageable pageable);

    /**
     *  Get the "id" dataIdcard.
     *
     *  @param id the id of the entity
     *  @return the entity
     */
    DataIdcardDTO findOne(Long id);

    /**
     *  Delete the "id" dataIdcard.
     *
     *  @param id the id of the entity
     */
    void delete(Long id);

    DataIdcardDTO findOneByNameAndCardno(String name, String cardno);
}
